﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClickerClimber.Scenes.SplashScreenScene;
using ClickerClimber.Scenes;

namespace ClickerClimber.Managers
{
    class DataManager
    {
        private static DataManager _instance;

        private SplashScreenScene _splashScreenScene;
        private GameScene _gameScene;
        private HUDScene _HUDScene;

        #region Constructors

        private DataManager()
        {
        }

        /// <summary>
        /// Gets the singleton instance.
        /// </summary>
        /// <value>
        /// The instance.
        /// </value>
        public static DataManager Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new DataManager();
                }
                return _instance;
            }
        }

        /// <summary>
        /// Starts up the Singleton
        /// </summary>
        public void StartUp()
        {
            _splashScreenScene = new SplashScreenScene();
            _gameScene = new GameScene();
            _HUDScene = new HUDScene();
        }

        #endregion Constructors

        #region Properties

        public SplashScreenScene SplashScreenScene
        {
            get
            {
                return _splashScreenScene;
            }
        }

        public GameScene GameScene
        {
            get
            {
                return _gameScene;
            }
        }

        public HUDScene HUDScene
        {
            get
            {
                return _HUDScene;
            }

        }
        #endregion Properties
    }
}
